import axios from 'axios'
import { BASEURL } from '../constants'
const userInstance = axios.create({
  baseURL: BASEURL,
})
// 登录
export function getUsers(user_name, user_pwd) {
  return userInstance.post('/login', { user_name, user_pwd })
}
//注册
export function putUsers(user_name, user_pwd, user_type) {
  return userInstance.post('/login/register', {
    user_name,
    user_pwd,
    user_type,
  })
}
